﻿using A.M.ETO;
using A.M.Storage.I_Application;
using J.M.Inventory.Domain.DTO;
using J.M.Inventory.Domain.Entity;
using Q.M.Sell.Doamin.DTO;
using Q.M.Sell.Doamin.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.M.Inventory.Application.IInventoryServices
{
    /// <summary>
    /// 入库管理表服务层
    /// </summary>
    public interface IStock_managementServices:IBaseServices<stock_management,string>
    {
        //入库管理的显示
        PageETO<stock_managementDTO> GetStockShow(string? code, int pageIndex, int pageSize);
        /// <summary>
        /// 删除销售表
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        int DeleteStock(string?  stockid);
        /// <summary>
        /// 仓库表
        /// </summary>
        /// <returns></returns>
        Task<ApiReturn<warehouse>> GetShowQueryable();
        /// <summary>
        /// 添加入库信息
        /// </summary>
        /// <param name="salesAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetStockAddInfo(Stock_managementAddDTO  stock_ManagementAddDTO);
        /// <summary>
        /// 修改生产入库信息
        /// </summary>
        /// <param name="salesAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> PostStockUpdateInfo(Stock_managementAddDTO Stock_managementAddDTO);
        /// <summary>
        /// 反填入库信息
        /// </summary>
        /// <param name="salesid"></param>
        /// <returns></returns>
        Task<stock_management> FindStockInfo(string? entermange_id);

        Task<ApiReturn<string>> GetAddXsInfor(string? id);
    }
}
